package com.fansl.allround.upms.api.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * @author fansl
 * @Description: TODO
 * @date 2019/11/6 14:18
 */
@Data
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = true)
@TableName("sys_user_oauth")
public class SysUserOauth extends Model<SysUserOauth> {
    /**
     * 编号
     */
    @TableId(value = "user_oauth_id",type = IdType.AUTO)
    private Integer userOauthId;

    /**
     * 帐号编号
     */
    private Integer userId;

    /**
     * 认证方式编号
     */
    private Integer oauthId;

    /**
     * 绑定状态(0:解绑,1:绑定)
     * @see com.fansl.allround.common.core.constant.enums.UserOauthStatusEnum
     */
    private Integer status;

    /**
     * 第三方ID
     */
    private byte[] openId;
}
